package com.spsoft.vatoutinv.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.spsoft.system.entity.NvatOutInvoiceDetails;
import com.spsoft.vatoutinv.model.dto.matchflow.VmsMatchFlowSelectPageDto;
import com.spsoft.vatoutinv.model.dto.matchflow.VmsMatchInvoicePageDto;
import com.spsoft.vatoutinv.model.vo.matchflow.VmsMatchFlowApplyVo;
import com.spsoft.vatoutinv.model.vo.matchflow.VmsMatchFlowSelectVo;
import com.spsoft.vatoutinv.model.vo.matchflow.VmsMatchInvoicePageVo;
import com.spsoft.vatoutinv.model.vo.matchflow.excel.VmsMatchFlowSelectExcelVo;
import com.spsoft.vatoutinv.model.vo.transflowfindinvoice.TransFlowRecallInvoiceInfoVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 销项发票主信息 Mapper 接口
 * </p>
 *
 * @author chenxudong
 * @since 2023-12-14
 */
public interface VatNvatOutInvoiceDetailsMapper extends BaseMapper<NvatOutInvoiceDetails> {
    /**
     * 交易流水追溯发票-查询发票信息
     * @param rdid
     * @return
     */
    TransFlowRecallInvoiceInfoVO queryInvoiceByRdid(@Param(value ="rdid")Integer rdid);

    /**
     * 发票匹配流水-查询可以匹配流水的发票信息
     */
    IPage<VmsMatchInvoicePageVo> pageMatchInvoice(@Param("page") Page<VmsMatchFlowApplyVo> page, @Param("pageDto") VmsMatchInvoicePageDto pageDto);

    /**
     * 手工匹配流水查询主页面-分页查询
     */
    IPage<VmsMatchFlowSelectVo> matchFlowSelect(@Param("page") Page<VmsMatchFlowApplyVo> page, @Param("pageDto") VmsMatchFlowSelectPageDto pageDto);

    /**
     * 手工开票匹配流水情况查询-导出查询
     */
    List<VmsMatchFlowSelectExcelVo> exportMatchFlowSelect(@Param("pageDto") VmsMatchFlowSelectPageDto pageDto);
}
